{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/addons/builder/css/base.css" media="all">
<style>
    .layui-form-item {
        margin-bottom: 15px !important;
        clear: both;
        *zoom: 1;
    }
</style>
<body>
<form action="{:url('save')}" class="layui-form v3-admin-form" id="form">
    <input type="hidden" name="id" value="{$info.id}" />
    <div class="layui-fluid layui-anim layui-anim-downbit">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 15px;">
                <div class="layui-row" style="padding-top: 8px;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">会员信息</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.user.code}-{$info.user.nickname}-{$info.user.mobile}" class="layui-input" readonly />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值账户</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.account}" class="layui-input" readonly />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值金额</label>
                        <div class="layui-input-block">
                            <input type="number" value="{$info.amount}" class="layui-input" readonly />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值方式</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.pay_way}" class="layui-input" readonly />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">申请时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.create_time}" class="layui-input" readonly />
                        </div>
                    </div>
                    <div class="layui-form-item uploadImageBox">
                        <label class="layui-form-label">充值凭证</label>
                        <?php $image = explode(',',$info['images']);?>
                        <div class="layui-input-block">
                            <div class="layui-upload-list showImages">
                                {foreach name="$image" item="vo"}
                                <div class="imgContainer uploadImageBoxes" style="width: 30%;height: auto">
                                    <a target="_blank" href="{$vo}">
                                        <img src="{$vo}" style="width: 100%;height: auto">
                                    </a>
                                </div>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    {if $info->getData('status') == 1}
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" value="2" title="通过" checked>
                            <input type="radio" name="status" value="3" title="驳回">
                        </div>
                    </div>
                    {else}
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.status_name}" class="layui-input" readonly />
                        </div>
                    </div>
                    {/if}
                    {if $info->getData('status') != 2}
                    <div class="layui-form-item">
                        <label class="layui-form-label">驳回原因</label>
                        <div class="layui-input-block">
                            <input type="text" name="reject_msg" placeholder="如要驳回请输入驳回原因"
                                   value="{$info.reject_msg?:''}" class="layui-input" />
                        </div>
                    </div>
                    {/if}
                    {if $info->getData('status') != 1}
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.examine_time?:''}" class="layui-input" readonly />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核人</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$info.admin_name?:''}" class="layui-input" readonly />
                        </div>
                    </div>
                    {/if}
                </div>
            </div>
        </div>
    </div>
    {if $info->getData('status') == 1}
    {include file="public/submit" /}
    {/if}
</form>
</body>
{include file="public/footer" /}
</html>